package com.sc.byahi.open.client;

import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.SpanElement;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;

public class Notice extends Composite {

	private static NoticeUiBinder uiBinder = GWT.create(NoticeUiBinder.class);

	interface NoticeUiBinder extends UiBinder<Widget, Notice> {
	}

	public Notice() {
		initWidget(uiBinder.createAndBindUi(this));
	}

	@UiField
	SpanElement text;

	public Notice(String notice) {
		initWidget(uiBinder.createAndBindUi(this));
		text.setInnerText(notice);
	}
}
